<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
	<script type="text/javascript" src="$url.base/static/jquery-1.3.2.min.js" charset="utf-8"></script>
	<script type="text/javascript" src="$url.base/static/json.min.js" charset="utf-8"></script>
	<script type="text/javascript" src="$url.base/static/forum.js" charset="utf-8"></script>
	<script type="text/javascript" src="$url.base/static/thickbox.js" charset="utf-8"></script>
	<script type="text/javascript" src="$url.base/static/jquery.anchor.js" charset="utf-8"></script>
<script type="text/javascript" src="$url.base/static/xheditor/xheditor-1.1.8-zh-cn.min.js"></script>
<script type="text/javascript" src="$url.base/static/xheditor/xheditor_plugins/ubb.min.js"></script>
<link type="text/css" href="$url.base/static/discuz/main.css" rel="stylesheet"/>
<style type="text/css">
p.author{
background-color:#EEEEFF;
border-top:1px solid #DDDDEE;
padding:6px;
}
h3{
	margin:10px 0;
	font-size:15px;
	font-weight:normal;
}
h1{
	margin:10px 0;
	font-size:15px;
	font-weight:bold;
}
h3 a:link, div.related-links a{
	color:#261CDC;
}
div.related-links{
	background-color:#ffd;
	font-size:12px;
}
a.more{
	color:#261CDC;
}
.content{
	background:white;
	padding:20px 10px;
	border:solid 1px #EEE;
	padding-bottom:10;
}
</style>
</head>

<body>
<div id="home">
	#parse("discuz/_header.htm")
		<div class="topic content">
			#if($pagination.currentPage==1)
			#if($replyList.size() > 0)
				#set($solve="solved")
			#else
				#set($solve="notsolved")
			#end
			<p class="author" style="margin-top:0px;">$subject.author.account.nickname 发表于 $utils.dateFormat("yyyy-MM-dd HH:mm",$subject.dateline)</p>
			<h1>$subject.title</h1>
			$utils.ubb2html($subject.content)<br/>	
	<script type="text/javascript">
	<!--
	window.moveTo(0,0);
	if(document.all){
	top.window.resizeTo(screen.availWidth,screen.availHeight);
	}
	else if(document.layers||document.getElementById){
	if(top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
	top.window.outerHeight = screen.availHeight;
	top.window.outerWidth = screen.availWidth;
	}
	}
	//--> 
	</script>

			#end
			##找出医生的最后一帖位置
			#foreach($reply in $replyList)
				#if($reply.author.id>3)
					#set($pos=$foreach.index)
				#end
			#end
			#foreach($reply in $replyList)
				#if($reply.author.id>3)
				<p class="author">$reply.author.account.nickname　 发表于 $utils.dateFormat("yyyy-MM-dd",$reply.date)</p>
				<p style="overflow:auto;zoom:1;"><img src="${url.base}/static/doctor.gif" style="margin-right:5px;float:left;clear:right;"/>$utils.ubb2html($reply.content)#if($pos==$foreach.index)<img src="${url.base}/static/more.png"/>#end</p>
				#elseif($reply.author.id==2)
				<p class="author">$reply.author.account.nickname　 发表于 $utils.dateFormat("yyyy-MM-dd",$reply.date)</p>
				$utils.ubb2html($reply.content)
				#elseif($reply.author.id==3)
				<p class="author">$reply.author.account.nickname　 发表于 $utils.dateFormat("yyyy-MM-dd",$reply.date)</p>
				<p>$utils.ubb2html($reply.content)</p>
				#end
			#if($showOperationButton)
				<div class="time">
					<a href="javascript:javascript:if((confirm('确定要删除吗？')))forum.op.deleteReply(${reply.id})">删除</a>
					#if($reply.hide)
					<a href="javascript:forum.op.hideReply(${reply.id}, false)">显示内容</a>
					#else
					<a href="javascript:forum.op.hideReply(${reply.id}, true)">隐藏内容</a>
					#end
					<a href="#">加分</a>
				</div>
			#end
			#end
		</div>
	#parse("discuz/_pagination.htm")
<!-- 
		<a name="reply"></a>
		<div class="topic_form">
			<form id="reply-from" action="$url.base/topic/$subject.id" method="post">
			<table>
				<tr>
					<td style="vertical-align:middle;">内　容:</td>
					<td>
					<div class="editor">
						<textarea id="post_content" cols="40" rows="10" id="topic_content" style="width:550px;height:200px;" name="content"></textarea>
					</div>
					</td>
					<td> </td>
				</tr>
				<tr>
					<td> </td>
					<td>
						<input style="margin-top:25px; padding:0 10px;" type="submit" value="发　表"/>
					</td>
					<td> </td>
				</tr>
			</table>
			</form>
		</div>
 -->
<script type="text/javascript">
var editor;
$(pageInit);
function pageInit()
{
	editor= $('#post_content').xheditor({
		skin:'nostyle',
		tools:'Fullscreen,FontSize,Bold,Italic,Underline,Strikethrough,FontColor,BackColor,Removeformat,|,Align,Img,Emot,Link,Unlink,SelectAll,Pastetext,Source',
		html5Upload:false,
		upImgUrl:"$url.base/xheditor/upload",
		upImgExt:"jpg,jpeg,gif,png",
		showBlocktag:false,
		forcePtag:false,
		beforeSetSource:ubb2html,
		beforeGetSource:html2ubb,
		emotMark:true,
		shortcuts:{'ctrl+enter':submitForm}
	});
}
function submitForm(){$('#reply-from').submit();}
</script>
	#parse("discuz/_footer.htm")
</div>
</body>
</html>
